import request from "@/request/api";
/* 缺陷工单 */

//查询分页列表
export function getListApi(data) {
  return request({
    url: "/eam-service-order/order/grade/queryList",
    method: "get",
    params:data,
  });
}
//删除单个工单
export function deleteApi(id='') {
  return request({
    url: "/eam-service-order/order/grade/deleteById",
    method: "delete",
    params:{id},
  });
}

//查询单个变更单
export function getDetailsApi(id="") {
  return request({
    url: "/eam-service-order/order/grade/queryById",
    method: "get",
    params: {id},
  });
}

//新增
export function saveOrUpdate(data) {
  return request({
    url: "/eam-service-order/order/grade/saveOrUpdate",
    method: "post",
    data: data,
  });
}
//查询表单列表-共分级分项验收单使用
export function getOrderWorkListApi(data) {
  return request({
    url: "/eam-service-order/overhaul/form/queryList",
    method: "get",
    params: data,
  });
}
//根据作业表单id查询详情
export function getWorkListDetailsApi(formId="") {
  return request({
    url: "/eam-service-order/overhaul/form/getById",
    method: "get",
    params: {formId},
  });
}



